import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { Store } from '@ngxs/store';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal';
import { EntityListStateService } from '../../core/entity-list.state.service';
import { TenantDto } from '../proxy';
import { TenantListState } from './tenant.states';

@Injectable({
  providedIn: 'root',
})
export class TenantListService extends EntityListStateService<TenantDto> {
  public navigateToDetail(): Promise<boolean> {
    throw Error('未实现changeToView方法');
  }
  public changeToView(id: string): Promise<TenantDto> {
    throw Error('未实现changeToView方法');
  }
  public changeToEmpty(): Promise<void> {
    throw Error('未实现changeToEmpty方法');
  }
  constructor(
    protected store: Store,
    protected modal: NzModalService,
    protected message: NzMessageService,
    protected router: Router
  ) {
    super(TenantListState, store, modal, message);
  }
}
